package com.zhw.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class SystemController {
	@Autowired
	private RestTemplate restTemplate;
	@RequestMapping("/getClientName")
	public String getClientName() {
		return restTemplate.getForObject("http://localhost:20003", String.class);
	}
	@RequestMapping("/")
	public String get() {
		return "Client-A-SystemController---get()";
	}
}
